<?php
class searchControl extends Control{
 public function index(){
 	C("debug",0);
 	//$a = iconv("UTF-8","gb2312",$_POST['title']);
    $tit= urldecode($_GET['title']);
    
    
    $db=M("news");
       
    $row=$db->where("title like '%$tit%'")->count();
    $seach=$db->where("title like '%$tit%'")->select();
     $page=new page($row,5); 
    $search=$db->where("title like '%$tit%'")->limit($page->limit())->select();
     $this->assign("pages",$page->show(2));
     $this->assign("search",$search);
    
      $this->display();
  
  
    
 
 
 
 }


}